import request from '@/utils/request'
// 获取权限列表
export const getpermissionListAPI = (params) => request.get('/sys/permission', { params })
// 新增权限列表
export const addpermissionListAPI = (data) => request.post('/sys/permission', data)
// 删除权限列表
export const delpermissionListAPI = (id) => request.delete(`/sys/permission/${id}`)
// 修改详情
export const editpermissionListAPI = (data) => request.put(`/sys/permission/${data.id}`, data)
// 获取详情
export const setpermissionListAPI = (id) => request.get(`/sys/permission/${id}`)
